package com.luhuiguo.cms.server.service;

import java.util.List;

import com.luhuiguo.cms.server.entity.Channel;

public interface ChannelService {

    List<Channel> findChannels();

    Channel getChannel(Long id);

    Channel getChannelByPath(String path);

    List<Channel> findChannelsByParentId(Long parentId, int... rowStartIdxAndCount);

    void saveChannel(Channel channel);

    Channel updateChannel(Channel channel);

    Channel updateChannel2(Channel channel);
    
    void deleteChannel(Long id);

    void deleteChannelCascade(Long id);

}
